package com.stone.framework.task.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.stone.framework.message.task.ScheduleConfigPageReqBody;
import com.stone.framework.message.task.ScheduleConfigPageResBody;
import com.stone.framework.message.task.ScheduleConfigReqBody;
import com.stone.framework.task.entity.ScheduleConfig;

public interface ScheduleService {

    String JOB_KEY = "TASK_";

    IPage<ScheduleConfigPageResBody> queryPage(ScheduleConfigPageReqBody reqBody, Page<ScheduleConfig> page);

    void save(ScheduleConfigReqBody reqBody);

    void modify(ScheduleConfigReqBody reqBody);

    void delete(Long id);

    void run(Long id);

    void pause(Long id);

    void resume(Long id);

}
